.editor-container {
  max-width: 800px;
  margin: 20px auto;
  border: 1px solid #ccc;
  border-radius: 4px;

  .toolbar {
    padding: 10px;
    border-bottom: 1px solid #ccc;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    gap: 10px;
    .btn {
      position: relative;
      display: flex;
      align-items: center;
      justify-content: center;
      width: 40px;
      height: 30px;
      background-color: white;
      border: 1px solid #ddd;
      border-radius: 4px;
      cursor: pointer;
      transition: all 0.2s;
      color: #595959;
      &:hover{
        background-color: #e9e9e9;
      }
      &::before{
        background-color: #333;
        border-radius: 5px;
        color: #fff;
        content: attr(title);
        font-size: 12px;
        opacity: 0;
        padding: 5px 10px;
        position: absolute;
        text-align: center;
        top: 40px;
        transition: opacity 300ms;
        visibility: hidden;
        white-space: pre;
        z-index: 1;
      }
      &::after{
        border: 5px solid transparent;
        border-bottom: 5px solid #333;
        content: "";
        opacity: 0;
        position: absolute;
        top: 30px;
        transition: opacity 100ms;
      }
      svg {
        width: 12px;
        height: 12px;
        fill: #595959;
      }
      .active {
        background-color: #e2e2e2;
        border-color: #bbb;
      }
    }
  }

  #editor {
    position: relative;
    min-height: 400px;
    padding: 15px;
    outline: none;
    font-size: 14px;
    color: rgb(78, 89, 105);
    p{
      margin: 0;
    }
    &::before{
      content: attr(placeholder);
      position: absolute;
      top: 15px; /* Adjust to match padding */
      left: 15px; /* Adjust to match padding */
      color: #aaa;
      pointer-events: none; /* Allows clicks to pass through to the editable div */
      display: block;
      white-space: nowrap; /* Prevent placeholder text from wrapping */
      overflow: hidden;
      text-overflow: ellipsis;
      max-width: calc(100% - 30px); /* Adjust for padding */
    }
    &.has-content::before,
    &:focus::before{
      display: none;
    }
  }
}

.toolbar .btn:hover:before,
.toolbar .btn:hover:after {
  opacity: 1;
  visibility: visible;
}




.max-width {
  width: max-content !important;
}

.font-size-div {
  display: flex;
  position: relative;
  text-align: center;
}

.font-size-div .select-font-size {
  background-color: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 3px;
  box-shadow: 0 2px 10px #0000001f;
  left: 0;
  margin-top: 40px;
  max-height: 350px;
  min-width: 100px;
  overflow-y: auto;
  position: absolute;
  top: 0;
  z-index: 1;
  display: none;
}

.font-size-div .select-font-size ul {
  padding: 0;
  line-height: 1;
  list-style: none;
}


.font-size-div .select-font-size ul li {
  cursor: pointer;
  padding: 7px 0 7px 25px;
  position: relative;
  text-align: left;
  white-space: nowrap;
  font-size: 14px;
  color: #595959;
}

.font-size-div .select-font-size ul li:hover {
  background-color: #f1f1f1;
}

.font-size-div .select-font-size ul svg {
  fill: #595959;
  height: 14px;
  width: 14px;
  left: 0;
  margin-left: 5px;
  margin-top: -7px;
  position: absolute;
  top: 50%;
}
